package com.wzx.user.service;

import com.wzx.common.exception.LeadNewsException;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/8/3 - 15:39
 * @description 标题
 */
public interface CommonService {

    /**
     * 1，密码加密
     *
     * @param userId
     * @param pwd
     * @return
     */
    String encryption(Integer userId, String pwd) throws LeadNewsException;

    /**
     * 2，密码解密
     *
     * @param userId
     * @param pwd
     * @param sqlPwd
     * @return
     */
    boolean decrypt(Integer userId, String pwd, String sqlPwd) throws LeadNewsException;

}
